package JavaSE_core.sz;

public class sjfzd {
    public static void main(String[] args) {

        /**
         * 时间复杂度
         *
         */

        int count = count (7);

        System.out.println (count);



    }

    public static int count(int n) {
        int sum = 0;
        for (int i = 0; i < n; i++) {
            sum += i;
        }
        return sum;
    }
}
